describe('practice-1-10', function () {

    it("不同进制的数进行数制转换", function () {
        var res_des_10 = {pre_num:'15',pre_num_system:'16',after_num_system:'10'};
        var res_des_16 = {pre_num:'10',pre_num_system:'8',after_num_system:'16'};
        var res_des_8 = {pre_num:'85',pre_num_system:'10',after_num_system:'8'};
        var res_des_2 = {pre_num:'20',pre_num_system:'10',after_num_system:'2'};

        expect(number_system_conversion(res_des_10).after_num_system).toBe('10');
        expect(number_system_conversion(res_des_10).after_num).toBe('21');

        expect(number_system_conversion(res_des_16).after_num_system).toBe('16');
        expect(number_system_conversion(res_des_16).after_num).toBe('8');

        expect(number_system_conversion(res_des_8).after_num_system).toBe('8');
        expect(number_system_conversion(res_des_8).after_num).toBe('125');

        expect(number_system_conversion(res_des_2).after_num_system).toBe('2');
        expect(number_system_conversion(res_des_2).after_num).toBe('10100');
    });
});